<extend name="Index/index" />

<block name="Main content">


<div class="container mt30 adminlogin">
    <div class="row">
            
        <div class="col-md-12 col-sm-12 bg-primary">
            <h3 class=" text-center"><b>添 加 话 题</b></h3>
        </div>

        <form action="<{:U('Topics/insert')}>" method="post" enctype="multipart/form-data" class="form-horizontal col-md-4 col-md-offset-4 col-sm-4 col-sm-offset-4 mt50">

            <div class="form-group">
                <label for="name" class="col-md-3 control-label h6">话 题 名:</label>
                <div class="col-md-9">
                    <input type="text" name="name" class="form-control" id="name" placeholder="请输入话题名">
                </div>
            </div>


            <div class="form-group">
                <label for="pid" class="col-md-3 control-label h6">PID:</label>
                <div class="col-md-9">
                    <input type="text" name="pid" class="form-control" id="pid" value="<{$pid}>" readonly>
                </div>
            </div>


            <div class="form-group">
                <label for="path" class="col-md-3 control-label h6">PATH:</label>
                <div class="col-md-9">
                    <input type="text" name="path" class="form-control" id="path" value="<{$path}>" readonly>
                </div>
            </div>

            <div class="form-group">
                <label for="detail" class="col-md-3 control-label h6">简介:</label>
                <div class="col-md-9">
                    <textarea name="detail" class="form-control" id="detail" placeholder="请输入百字以内简介"></textarea>
                </div>
            </div>

            <div class="form-group">
                <label for="image" class="col-md-3 control-label h6">图片:</label>
                <div class="col-md-9">
                    <input type="file" name="imgFile" class="form-control" id="image">
                </div>
            </div>


            <div class="form-group">
                <div class="col-md-6">
                    <button type="reset" class="btn btn-primary btn-block">重 置</button>
                </div>
                <div class="col-md-6">
                    <button type="submit" class="btn btn-primary btn-block">添 加</button>
                </div>
            </div>



        </form>
    </div><!-- end row-->
</div><!--end container-->



</block>

<block name="myjs">

</block>